#include <TraffEduObject.h>
Inheritance diagram for TraffEduObject:

Public Member Functions | |
| virtual void | draw (osg::ref_ptr< osg::Group > root, int animationFlag=-1)=0 |
| void | addTree (osg::ref_ptr< osg::Group > root, int animationFlag=-1) |
| osg::PositionAttitudeTransform * | getPAT () |
| void | setScale (float x, float y, float z) |
| void | setPosition (float x, float y, float z) |
| void | setRotate (float x, float y, float z, float axis) |
| osg::Vec3d | getScale () |
| osg::Vec3d | getPosition () |
| osg::Quat | getRotate () |
| char | getCondition () |
| void | setCondition (char chr) |
| int | getObjectId () |
| void | setObjectId () |
| int | getIsBeforeCreated () |
| void | setModelPath (string str) |
| string | getModelPath () |
| void | resetModelPath (string str) |
| void | hide (osg::ref_ptr< osg::Group > root) |
| void | display (osg::ref_ptr< osg::Group > root, int animationFlag=-1) |
| void | setObjectType (ObjectType type) |
| ObjectType | getObjectType () |
| void | setModelScale (float scale) |
| float | getModelScale () |
| double | getm_drotz () |
| osg::ref_ptr< osg::Node > | returnNode () |
| osg::ref_ptr< osg::Node > | returnNode (int i) |
| osg::ref_ptr< osg::PositionAttitudeTransform > | getObjectPAT () |
| void | setInAnimation (int i) |
| int | objectPATvectorSize () |
| void | setIsBeforeCreated (int flag) |
| vector< vehiclePAT * > & | getObjectPATvector () |
| void | resetObjectId () |
| osg::ref_ptr< osg::Group > | getObjectGroup () |
| TraffEduObject () | |
| TraffEduObject (string modelpath, float scalevalue) | |
| ~TraffEduObject () | |
| int | addObjectPAT (int i) |
| int | deleteObjectPAT (int i) |
| osg::ref_ptr< osg::PositionAttitudeTransform > | reloadObjectPAT () |
| void | setAsPhysicalVehicle () |
| bool | isPhysicalVehicle () |
| void | setCameraFollow () |
| bool | isCameraFollow () |
| void | resetCameraFollow () |
| void | undoPhysicalVehicle () |
Protected Member Functions | |
| void | sortObjectPATvector () |
| int | returnIndex (int) |
Protected Attributes | |
| ObjectType | type |
| int | objectId |
| int | viewMode |
| string | modelPath |
| osg::ref_ptr< osg::PositionAttitudeTransform > | objectPAT |
| vector< vehiclePAT * > | objectPATvector |
| float | modelScale |
| char | condition |
| int | isBeforeCreated |
| int | inAnimation |
| double | m_drotz |
| int | cameraFollow |
| osg::ref_ptr< osg::Group > | objectGroup |
| osg::ref_ptr< osg::Geometry > | objectGeometry |
| osg::ref_ptr< osg::Geode > | objectGeode |
| osg::ref_ptr< osg::Node > | node |
| int | physicalVehicle |
|
|
TraffEduObject constructor |
|
||||||||||||
|
TraffEduObject constructor
|
|
|
TraffEduObject destructor |
|
|
addObjectPAT
|
|
||||||||||||
|
|
|
|
deleteObjectPAT
|
|
||||||||||||
|
Inserts the object to the root if it is hidden.
|
|
||||||||||||
|
Implemented in EnvironmentObject, Path, TrafficLight, TrafficSign, Vehicle, and Wheel. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hide function
|
|
|
isCameraFollow
|
|
|
|
|
|
|
|
|
|
|
|
resetCameraFollow sets the bool variable cameraFollow to 0. |
|
|
setModelPath function
|
|
|
sets objectId to 0. |
|
|
|
|
|
|
|
|
|
|
|
sets the variable that determines whether the vehicle needs a corresponding physical vehicle |
|
|
SetCameraFollow sets the bool variable cameraFollow to 1. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sets the scale factor of the model
|
|
|
sets the id of the objects |
|
|
sets the type of the object to the objectType field
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
sorts the elements in the PAT vector according to the frame numbers. |
|
|
undoPhysicalVehicle sets the bool variable physicalVehicle to 0. |
|
|
variable that keeps the boolean value for whether the camera will follow it or not. |
|
|
variable that keeps the condition of the object. |
|
|
variable that keeps the boolean value for whether the object is in animation or not. |
|
|
variable that keeps the boolean value of whet it is drawn or not. |
|
|
variable that keeps the rotation angle in z coordinates of the object. |
|
|
variable that keeps the path of the model of the object. |
|
|
variable that keeps the scale factor of the object. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variable that keeps the id of the object |
|
|
variable that keeps the PositionAttitudeTransform of the model of the object. |
|
|
variable that keeps the vector of PositionAttitudeTransform of the model of the object. |
|
|
|
|
|
variable that keeps the type of the object |
|
|
variable that keeps the viewMode of the object; hide or display property. |
1.4.6-NO